package com.bjfu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;

@Controller
public class IndexController {
    @RequestMapping("/index")
    public String test(Model model){
        model.addAttribute("msg","<h1>Hello,这是首页</h1>");
        return "index";
    }
}
